﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RecordProcess.aspx.cs"
    Inherits="RainyPWS.Web.Admin.RecordProcess" %>

<%@ Register Assembly="RainyPWS.Controls" Namespace="RainyPWS.Controls" TagPrefix="rd" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>日志</title>
    <base target="_self" />
    <link href="styles/ModelDialog.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.6.1.js" type="text/javascript"></script>
    <script src="../Scripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
    <script src="../Scripts/tiny_mce_config.js" type="text/javascript"></script>
    <script type="text/javascript">
        function checkForm() {
            var title = $('#<%=txtTitle.ClientID %>');
            var content = $('#<%=TinyEditor.ClientID %>');
            var type = $('#<%=ddlType.ClientID %>');
            if (title.val().length == 0) {
                alert("标题不能为空!");
                return false;
            }
            if (type.val().length == 0) {
                alert("请选择记事的类型!");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return checkForm()">
    <div>
        <div class="dialogBoxLine">
            <div class="dialogBox">
                <div style="margin: 12px auto; width:780px;">
                    <div style="width: 780px;">
                        <div class="d-column" style="width: 390px;">
                            <rd:RTextBox ID="txtTitle" runat="server" Caption="标题：" TotalWidth="370" Width="290"></rd:RTextBox>
                            <rd:RLabel ID="lblStatus" runat="server" Caption="状态：" TotalWidth="370" Width="290"></rd:RLabel>
                            <rd:RDropDownList ID="ddlType" runat="server" Caption="类型：" TotalWidth="370" Width="290">
                            </rd:RDropDownList>
                            <rd:RTextBox ID="txtAuthor" runat="server" Caption="作者：" TotalWidth="370" Width="290"></rd:RTextBox>
                        </div>
                        <div class="d-column" style="width: 390px;">
                            <rd:RTextBox ID="txtKeys" runat="server" Caption="关键字:" TotalWidth="390" Width="310"></rd:RTextBox>
                            <rd:RTextBox ID="txtSummary" runat="server" Caption="摘要：" TotalWidth="390" Width="310"
                                TextMode="MultiLine" Height="45"></rd:RTextBox>
                        </div>
                        <div class="d-clear">
                        </div>
                    </div>
                    <div style="width: 780px;">
                        <label class="d-form-item-label d-form-item-label-top" style="margin-bottom: 5px;">
                            内容：</label>
                        <div>
                            <asp:TextBox ID="TinyEditor" Columns="70" Rows="16" Width="100%" TextMode="MultiLine" Height="350" runat="server"></asp:TextBox>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="dialogBottom">
            <asp:HiddenField ID="hdnId" runat="server" />
            <asp:HiddenField ID="hdnStatus" runat="server" />
            <asp:Button ID="btnSubmit" runat="server" Text="保存" onclick="btnSubmit_Click" />
            <input type="button" id="btnClose" value="关闭" onclick="window.close();" />
        </div>
    </div>
    </form>
</body>
</html>
